engine: fix eclipse/findbugs warnings

Change-Id: I280d5b697d8736cec4f5736cd3af25a0cf2db6c1
Signed-off-by: Moti Asayag <masayag@redhat.com>