Fix call to undefined method phpbb\titania\url\legacy\rerouter::has_param().
Fix call to a member function get_allowed_branches() on a non-object.
Merge branch 'ascraeus' into develop

* ascraeus:
  Fix call to a member function get_allowed_branches() on a non-object.
  Fix call to undefined method phpbb\titania\url\legacy\rerouter::has_param().