tool_mergeusers: Simplify and correct getCurrentUserFieldNames()

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