Convert 'None' data to error code for facebook internal server error.

In the case of https://developers.facebook.com/x/bugs/241617149351663/.