Check for base_dir attr when opening menu in RabbitVCS

This is the cause of a lot of spurious Python exceptions when running RabbitVCS. They are harmless, but should be prevented since they fill up .xsession-errors with messages which aren't actually errors.

I'm only adding checks for the ones which trigger, since the attribute missing in other sections of the code doesn't normally happen and so would be a relevant error.