Alert banner is shown on timer view if sync has failed

Move the `var bus = ...` out of the previous if so this could be reused instead of hitting the ServiceContainer again. That's how it's done for the rest of the code: single bus usage, inside the `if { ... }`; multiple bus usages, outside of the `if { ... } if { ... }`.