Header\ContentType: remove empty values from parsed header

Fix bug where a header string ending in ';' will add an empty element in array, triggering an 'Undefined offset' error later.