Fixed NoneType error

A NoneType error was being generated if there were 0 Deleted messages or 0 Undeleted messages.  Fixed by checking for None and setting to 0 if true.