fixed Log Piles under Grill crashing the game

Check that the TileEntity under the Grill is an instance of TEFireEntity before casting.
(This also checks that it is not null)

fix for http://terrafirmacraft.com/f/topic/7137-crash-placing-a-log-pile-under-a-grill/#entry95463