If the enum passed in is null, just return null too.