throw an Exception if no command added to a command stack