[am] catch IllegalArgumentException from getHarmfulAppWarning

A missing package should not cause system_server crash.

BUG: 253989182
Test: builds
Change-Id: I55fd685280ea6a3d08b9c838b2245ed6dec0aa56
1 file changed