Fixed a bug where a null init data would cause entity.Initialise to crash

Signed-off-by: Martin Evans <martindevans@gmail.com>