Ticket #1395: Checking if container exists before working on it