Fixes TypeError when Flask.static_folder is None