avoid fatal error in the JS when rebalancing content

See: https://github.com/GigaOM/gigaom/issues/5353
Merge pull request #10 from zbtirrell/null-check

avoid fatal error in the JS when rebalancing content