Fix room editor exception that occurs when centering objects without a
sprite.