repo: Fix race condition causing the statusicon to report an error where there isn't one