Header.unmarshal uses the Result.t rather than failwith

Signed-off-by: David Scott <dave.scott@eu.citrix.com>