Use isFinishing() instead

As suggested by @maniac103
https://github.com/k9mail/k-9/commit/41570e4#commitcomment-7388209