Fixes #23.

Prevent NPE.