Don't try to stop a stack on a dead engine

Check that an engine is still alive before trying to stop the stack
during a stack-delete.

Change-Id: I3ce87dcefd5c4b5c542c3dc0d288655433bf69c4
Closes-Bug: #1279010
Merge "Don't try to stop a stack on a dead engine"