omit None values in url_for