Fix `pop` on an empty collection. Ref #380