Fixed bug where shared null instance was considered equal