add argunment checks to addToLog for None case of href file name
add more protection to addToLog for absent messageArgs