Bugfix: PHP Notice, involved file=includes/entity.inc, line 364. Closes #32.