Added some error checking in the OBJ loader