test if lsar is nil before attempting split

fixes #3332
Merge pull request #3335 from rolandwalker/lsar_nil_test

test if lsar is nil before attempting split
cut v0.30.1
aseprite 0.9.5
Merge pull request #3337 from leoj3n/aseprite-0.9.5

aseprite 0.9.5