Fix 500 error when calling get_object() multiple times (bug 944723)

https://bugzilla.mozilla.org/show_bug.cgi?id=944723