Fixed a stupid typo in CommandLogWriter safety check