Test for valid tags during parse

fixes StackExchange/bosun#221