Merge pull request #13412 from arthurnn/quote_id_not_id

quoting: Check if id is a valid method before using it