fix for - JSONErrorHook is not setting content type to JSON

Closes-bug #1330541

Change-Id: I7d80011e18584bf515b112ac1edebf93b792b9bc
Merge "fix for - JSONErrorHook is not setting content type to JSON"