engine: Performance improvement in clean up compensation data

If the command is running with out compensation context no need to clean it.
In memory check is much more faster than call to db

Change-Id: Ieb256db6415c8fd5f45fcee5bae984739e61fec3
Signed-off-by: Michael Kublin <mkublin@redhat.com>