fix folding with empty python files

see https://groups.google.com/forum/?fromgroups=#!topic/codemirror/bkVBhSDF3gs