Fixed imap get_last_message to return positive integer (google code issue 1729)