core: simplify isInactive handling in deactivation

Change-Id: If53ca40e3c5b584f01f86d741cd3cc5cd8ee0812
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>