Fixed regression in previous commit

TCallback exposes no real object in the page DOM, so the new method to
find the form introduced with the previous commit needs to have a
proper fallback to the old method.