minor fix to prevent err when trying to mark null nid