PublishMojoHelper - additional null check when properties are copied.