Fix occasional crash in shape layer path animation