CORE-4105: fixed a null pointer exception that was occurring in the /preview-workflow service