Added an extra check for invalid credentials

I found a little problem while using the crunchyroll plugin: credentials got invalidated out of nowhere before the expiration date, raising an error and forcing the user to add the purge-credentials option to make it work again.
This commit just fixes that little issue, sorry for the fuss!