Reject null input immediately.

Closes #112.