Fixed #33, crash when no entity template file exists.