filestore: fix parsing bug

Backport/cherry-pick of #1138

Prscript:
- https://buildbot.openinfosecfoundation.org/builders/inliniac/builds/32
- https://buildbot.openinfosecfoundation.org/builders/inliniac-pcap/builds/32