IDEX-679 : Headers can be null so avoid NPE here
(which lead to Uncaught TypeError: Cannot read property 'typeMarker$' of null )
Merge pull request #16 from benoitf/IDEX-679

IDEX-679 : Headers can be null so avoid NPE here