A Greenock woman whose dog bit a man on the arm in the town has been spared a ban from keeping pets.