Handled annoying exception when json not provided