SED/editor: Error check grid creation function