The stock exchange has always been a notoriously bad indicator when it comes to technology trends. It's why we had the whole dotcom bubble, it's why Facebook was valued so obscenely high. There's far too much focus from those looking to make a quick buck on what is cool or new, rather than what is necessarily profitable.
Microsoft still make more profit than Google and across a much more diverse portfolio of products too. Buying their stock probably won't make you rich, but it's unlikely to go bust anytime soon either.