booleanAttrs doesn't always exist

Added a check to see if the booleanAttrs key exists in the tok element, otherwise we get an error.
Also put the "console.log" on line 351 in a DEBUG conditional.