engine: Fix coverity FORWARD_NULL reported error

Change-Id: I75678478b93078d7d76d45798323e2d200c09540
Bug-Url: https://bugzilla.redhat.com/1024209
Signed-off-by: Moti Asayag <masayag@redhat.com>