I called Glockmeister or TopGlock about this very issue (don't remember which). You can indeed put a G27 upper on a G26 lower. You would also need to change the ejector and get new magazines.
The total cost was only about $100 less than buying a new gun. Just not worth it, IMHO.