Fixing loadThreadById function in messageList.js