UI: Check whether image is undefined.
Fixed editor animation breakage somehow.