Foreclosed homes that have been abandoned or neglected often come with hidden costs that can turn that bargain into a money pit.