Added an IsReadOnly check before changing the workset param