CLC-3924 Add logging to diagnose bMail NilClass errors

https://jira.ets.berkeley.edu/jira/browse/CLC-3924

Does not fix the issue, but adds necessary diagnostic log.