Catch 0 width/height scaled Bitmap sizes

Change getNormalizedBitmap to catch attempts to scale bitmap to 0 width
or height (which would throw an uncaught IllegalArgumentException) and
instead throw an IOException, which is caught and handled by the higher
level code.

Bug:15189759
Change-Id: Ifb23d0b0d4e1c2e8038b472840a464194fbfa800
2 files changed