Coverity Fixes

2 fixes for issues found by Coverity

prscript:
- PR build: https://buildbot.suricata-ids.org/builders/inliniac/builds/106
- PR pcaps: https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/27