I don't think you had a document selected when you got that error. (looks like you're in the settings page.) When I close all my editor panes and hit F1 and select Header Insert I also get that error message. So to answer your question, make sure you have a document open in your editor and have it selected.