Set Stack id to None when deleted

If a Stack object has been removed from the database, we should reset its
ID to None so that if the object is used further, it will not be assumed
that it is represented in the database.

Change-Id: Iaa7e9327324f101487847362973bd7f8386ce44b