koops: fix a use-after-free bug uncoverd by coverity

Related: #1084467

Signed-off-by: Jakub Filak <jfilak@redhat.com>