Add checks for a null container to resume gracefully