Remove nil that comes from a non-emitting command