Added better error handling when resizing image

If not getting JSON back from the image service we end up without an exception. So I added a introspection to the `$props` that throws the exception if is `NULL`