Corrected code causing error in previous commit

"if not self.ui_browser" needs to be replaced by "if not self.ui_browser and self.verify_webui or self.verify_horizon"
Error will be thrown only while running ui sanity but ui_browser is not set in testbed.