Adding check for null villager profession, modded servers like to abuse that. Bug 847:resolved