Don't record empty commands (fix #63)