minor fix, problem deatils not serialized correctly

10 jobs for !42 with OCF51-fix-problemdetails-not-correctly-formated-before-send-response-not-json-serializable
in 3 minutes and 54 seconds, using 0 compute credits, and was queued for 2 seconds
merge request