Check root value for null.

Fixes #1