Fixed null pointer issue in Subject model when using subjects on a drop down list