Fixed handling for "action=formedit" URLs for non-main namespaces

Change-Id: I810001a0567c01a89ed297b245d3e0708325aa33