Backend: Better error check in convert

If no body was posted at all, the server would crash.