Fix error where consumer is not deleted from sql

Looks like when the token sql backend was going through tokens
to delete, it didn't like if the token ref didn't have a token
field. I placed a guard in there now.

fixes bug: #1215493

Change-Id: Ia12f5e4d9af71c322c9230464ae39ec88303b600
Merge "Fix error where consumer is not deleted from sql"