Return proper exception on CreateImageBitmap WPT test

There is a test for createImageBitmap that checks whether the source
image can not be allocated (DstBufferSizeHasOverflow) and rejects
the promise returning a null object when it should reject with
kInvalidStateError

Bug: 799025
Change-Id: I57b3afad681161e89c3cff746c3e433c31fe9895
Reviewed-on: https://chromium-review.googlesource.com/c/1495835
Commit-Queue: David Quiroz Marin <davidqu@chromium.org>
Reviewed-by: Fernando Serboncini <fserb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636575}
3 files changed