Only show upgrade notices if DB is set up.

Fixes #1044 by checking to see if the wpsc_version option is set before
using it to decide which upgrade notices to display.

The diff looks like I did more than I did. There's just an extra if around the code that displays the upgrade notices, and the indents have been updated to reflect that.