Avoid NullPointerExceptions on incomplete properties