Issue #2197041 by Pere Orga, rlmumford, stefan.r: Fixed PHP notice in flag_token_info() when some flag types are not entity types.