fix crash upon usage of non-existent texture database entry