Fix missing return in DesiredCapabilities getter