Manually apply basic before_filters in case of routing error #1248