Bayesian Hierarchical Models for Parameter Inference with Missing Data: Supernova Cosmology Case Study.