Fixed a bug can cause crash when trying to collide with non-image tiles.