Ensure markup ended

Implements the behaviour in the tests at https://github.com/Shopify/liquid/pull/480 by ensuring a syntax error is raised so it can fall back.