Coverity fixes v0

Prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/319
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/234