Only free _parser if not null.

Fixes a segfault if an invalid vendor is passed in.