fix crashes inserting nil into array
Merge pull request #3 from quicksilver/pjr

fix crashes inserting nil into array