fix #820 null style causes split error on position's getContentStyles