fix for empty python file in admin editor

It's a codemirror issue, I'm sending a PR to codemirror too