Dog rescued after being stuck on the island for weeks