Support more than 9 portals
Summary: If portal is created with id > 9 - then those portals are not reachable and always return 404.
Test Plan: Create at least 10 portals, 10th and rest of them will no longer return 404.
Reviewers: epriestley, Pawka, Blessed Reviewers
Reviewed By: epriestley, Blessed Reviewers
Differential Revision: https://secure.phabricator.com/D20852