API: Allow redirecting a page to itself using action=edit

Follows-up 02660685708747d5.

Change-Id: I60aa15ac9f33c560c940c55cf98626bb9ff4b822
Merge "API: Allow redirecting a page to itself using action=edit"