Handle partial spheres without failing horribly

Cherry-picked commit from markembling/photosphere@cab6f48161c5479cded2492dba8e5fb66cd3983c