Added null checks for when authoring HTMLNodes