A man who stole a handbag which contained €2 from a 78-year-old woman has been sentenced to 15 months in prison.