MAGPHYS+photo-z: Constraining the Physical Properties of Galaxies with Unknown Redshifts