Avoid NOTICE errors in _getCommonCharAtPos