Make ST_IsValid(NULL) return NULL (i.e., FALSE)

Fixes #265.