Native crash -> ISE

Do some basic validation of the Bitmap given to
BitmapShader to avoid a subsequent native crash
in favor of a proper IllegalStateException

Fixes: 274860420
Test: BitmapShaderTest#testRecycledBitmapThrowsISE
Change-Id: I9ee64df5fc34909e5c91e979b1d21a4f94ca5e57
2 files changed