Fixed error message for bad header, improved for empty header.