Unset loading[$id] in ContainerBuilder on exception

This is the same functionality that Container provides.