Fix bug introduced by 86aea05 where routes helpers cannot be used when an
anonymous controller has been defined.