social auth facebook: fix 500 error in some cases