FED-103: Ported https://github.com/janrain/janrain-backplane-2/commit/145fbd318e22257f97ba4475740355b72bd2329f to 2012.46_RC2