Fixed warnings in an image_style_alter() hook.