Updated header-remover to consider the headers.

Now, bad headers will cause a null output.