tool_mergeusers: Simplify and correct getCurrentUserFieldNames()

This commit takes care of the errors thrown on tables such as mdl_message_contacts by simplifying the function from 49 lines to two lines. It now uses the time-tested Moodle database get_fieldset_sql() rather than reimplementing it incorrectly.