Throw an exception when parsing with no links object

This bit me hard, when you get the array of tokens, it should also have a `links` property.  This adds a check for that and throws an error if the `links` property is absent.