Forms: setAction method gets element through getElementPrototype method

It has been broken in #1404