Guards against the texture crop width/height being zero (which crashes IE11)