Correcting Type Ia Supernova Distances for Selection Biases and Contamination in Photometrically Identified Samples | Synapse