Fix regression from #2379

#2379 made it so that people get a banner alert when signing in if their card is about to expire. That's all well and good, except it's (unfortunately) common practice to use production data in development, where we don't actually have API access to the Balanced account used in production. This PR wraps the code in a `try/except` to allow the current style of development to continue.
@seanlinsley What would I fix exactly?