Bug 49277: Make wgIsPageEditable more accurate

Change-Id: Ic924e810b34276312790a41b5455909737cc2082
Merge "Bug 49277: Make wgIsPageEditable more accurate"