Fixes TypeError when Flask.static_folder is None

This solves my previous issue report #17