Fix type logic in TCP replication code that prevented correctly ignoring blank commands.