fixed crashing if texture isn't loaded or found on sprite