Fix defects found by static analyzers

Closes #193.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Merge pull request #194 from abrt/gh192_static_analysis

Fix defects found by static analyzers