Using Uncertainty Quantification to Characterize and Improve Out-of-Domain Learning for PDEs