Don't fail on invalid image

Sometimes some gems have invalid images inside. In this case task assets:precompile should skip this type of images :)