Don't try to call match on nil

Fixes #89