Fixed undefined error when loading worflows lockID