Avoid seg fault when no output exists