Two people stranded on Foulney Island were rescued after being cut off by a rising tide.