Check for root folder, do not crash when removing bookmark from main folder