If view function returns None substate empty dict to fix ``TypeError: render() argument after ** must be a mapping, not NoneType``.