Fix for blank child node error

Hi Sarah,

I added a 'cleanChildren' function that removes any null nodes from the source JSON.

-A