Catch OutOfMemoryError for getBitmap.

Change-Id: I85bf682cc98de0f075b4d8d6ec621d56ae559adb
Signed-off-by: Bin Li <libin@marvell.com>