Fix the display of static media upgrade instructions in rb-site.

The static media upgrade instructions in rb-site didn't reliably work,
due to the state of the database not being what was expected at the time
when we output the instructions. So now we do the check before the
upgrade process begins.