Remove unused InstanceNotEmptyError

[#76570148]