Fixing PHP error when loading routes with out permissions.