Base: Help alleviate SystemUI crashes

try and catch method toward bitmap and out of memory errors

Change-Id: Ie18faac4dce45eb2fe9ca07d628bed7cd0eafaab
Keyguard: Fix incorrect PIN entry on MSIM devices

This commit fixes a SystemUI FC caused by incorrect resource IDs that
happens on MSIM devices when the PIN code is entered incorrectly.

Cherry-picked from commit 5ed1cf42994f4a1ebf52931d7229d841e6446551

Change-Id: Iff82859e34018e84db1f8884019a53c3414b692b