Bug 1016862: Fixes issue with trying to access nil attribute.