Fix issue about Python 3 support

The `gettext` module in Python 3 has dropped the `NullTranslations.ugettext` method, use babel.support.NullTranslations instead, or an error `AttributeError: 'NullTranslations' object has no attribute 'ugettext'` occurred when `flask._request_ctx_stack` is empty.