Observations of the magnetars 4U 0142+61 and 1E 2259+586 with the MAGIC telescopes (Research Note)