Guard against no root

This will occur when remove is run from the command palette with no
project path.