Fixed #16774 Made sure ValueError is raised if None is returned by view function.
Fixed #16774 Made `RegexURLResolver.resolve` retain tried URLs state if new argument `reset` is False.