Graphics:Add error check when create GraphicBuffer
https://android-review.googlesource.com/#/c/47932/