4246 gid create message

fix the bug when the message type was maintenance window and all fields were filled out, the user changed the message type to incident and the message couldn't be saved.