nghttp2_hd: Fix integer decoding bug
nghttp2_hd: Fail inflate immediately if ctx.bad is nonzero

Doing inflation after error produces invalid results, especially, if
it is in NGHTTP2_HD_STATE_READ_INDEX, the inflater->left could be 0,
which causes assertion error.  Add sanity assertion for index