THE EFFECTS OF MAGNETIC FIELD MORPHOLOGY ON THE DETERMINATION OF OXYGEN AND IRON ABUNDANCES IN THE SOLAR PHOTOSPHERE