Per the subject line. See below for before and after screenshots. All existing status flags are wiped if the specified new status label has not been defined. As far as I can see there is no way of pre-empting this by checking for the existence of a status label in a script before running the SETLABEL command.
Thanks for reporting this. We've fixed it for the next update, where an invalid label name will make the command abort.