frameworks/base: Handle Out of Memory Exception when creating video t…

…humbnails.

Change-Id: I0b028b7fba4b1c41e2213d4c9e1cfbd5bcf48351