fix #1484: catch oom exception on BitmapFactory.decodeResource

fix #1484: catch oom exception on BitmapFactory.decodeResource