Return errors instead of panic'ing on tag parse failure.

Slightly easier to handle the recovery code.