Ensure a texture is not left in "no GPU object" state if reloading from a file fails. Closes #379.