output-json: fix minor memory leak on error

If the json file couldn't be opened, a minor memory leak would occur.

Coverity 1166039
rule reload: fix unitialized memory access on error

Coverity 709220
htp: fix pointer check logic

Don't check pointer after it has already been used.

Coverity 1047545
Minor cleanups

Remove useless checks: coverity 1038130, 1038131, 1038132
Small other fixes: coverity 1164817
byte_extract/test/jump: fix coverity issues

During keyword setup there was a path that in theory could lead to
indexing an array with a negative int.

Coverity 992695, 400605, 400604
fast-pattern: fix error check in keyword setup

Check the right variable. Coverity 1038096
isdataat: fix coverity issue

During keyword setup there was a path that in theory could lead to
indexing an array with a negative int.

Coverity 400608