Fix an exception thrown when creating a new script through the 'New line' button while the entryorguid field is left empty