Avoid crash when no texture