Fix javascript error on rapid hiding of trophy dropdown while it's still loading.
Combine if statements.
Merge pull request #687 from code-dot-org/trophypopup

Don't try to jump to trophies when closing stats dropdown.  (Causes JS error if the stats hadn't even loaded yet.)