Fixed a bug in initialisation auto copying where missing properties would cause a nullreferenceexception

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