fix an error when getContents returned an array whith null values
Merge pull request #7 from luap/master

getContents correction