Detect an error case when removed element is the last one in the bin.

It doesn't make sense to have an empty bin and I'm not sure it's even
possible, so to avoid future misunderstandings, I've added code to
error in case we're removing last element (in that case both pads that
would be linked after element was removed are ghost pads).