Throw exceptions in templates on NoReverseMatch.