Hotfix for recent Flask/Werkzeug versions breaking Flask-Login module