Handle more gracefully the case where a texture
directive has no image specified.  Prior to this
it was throwing an ArrayIndexOutOfBounds exception
which was silently swallowed even though the
import fails.