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

Need to check if value also `respond_to :id` before calling it, otherwise
things could :bomb: .

see #13410 for more context.


review @rafaelfranca