DNN-5943 - Added checks to prevent move or delete a state of workflow in use