A care home worker who stole more than £3,200 from a dead resident to pay off her credit card bill has been sentenced.