Fix crash on OSX because of wrong implementation of KoShape::compareShapeZIndex()
Compare function should return false when comparing an item with itself
BUG:394068