Fix bug in 9f2b1140 where it was impossible to edit a post if you had a non-post URL hash

Change-Id: Ib0b764975a543dd4c2e314a8ed62e1f002ca3540
Merge "Fix bug in 9f2b1140 where it was impossible to edit a post if you had a non-post URL hash"