Use safe asserts here
When undoing a layer merge, there's a fair chance that there aren't any shapes yet, so don't hard assert if that's the case.
CCBUG:381972