Corrected CTRunGetPositionsPtr usage

CTRunGetPositionsPtr can return a NULL result. This correction handles
that result, copying positions using CTRunGetPositions.
Merge branch 'keremerkan-master' into develop