Fix fatal errors when flag_token_info() is called

Updating a call to get_title() and also replaced the mostly commented out implementation of flag_get_flags() with the service replacement.
Is not used in code