BUGFIX Proper handling of the returned value from WorkflowService#ge...

...tDefinitionsFor, which is of type SS_List if defined, or null. Previous implementation didn't cater for empty array list