Getting attempt to index local 'consumer' (a nil value) with oauth plugin

Kong version: 0.11.2

Full stack trace

/usr/local/share/lua/5.1/kong/plugins/oauth2/access.lua:468: attempt to index local 'consumer' (a nil value)
2018-03-11T21:02:47.665212541Z stack traceback:
2018-03-11T21:02:47.665219454Z coroutine 0:
2018-03-11T21:02:47.665255364Z 	/usr/local/share/lua/5.1/kong/plugins/oauth2/access.lua: in function 'set_consumer'
2018-03-11T21:02:47.665263519Z 	/usr/local/share/lua/5.1/kong/plugins/oauth2/access.lua:566: in function 'execute'
2018-03-11T21:02:47.665269481Z 	/usr/local/share/lua/5.1/kong/plugins/oauth2/handler.lua:12: in function 'access'
2018-03-11T21:02:47.665275464Z 	/usr/local/share/lua/5.1/kong/init.lua:350: in function 'access'
2018-03-11T21:02:47.665281268Z 	access_by_lua(nginx-kong.conf:87):2: in function <access_by_lua(nginx-kong.conf:87)

The id of the anonymous consumer must match the ID of the oauth2 plugin anonymous value