Added empty attributes array to squish undefined index message from theme_image.