Fix how extractObject deals with PPs. Also fixes null pointers that can
arise if part of a triplet is not found.