Fix handling of FunctionDeclaration for Firefox