Add null check for default value on get preferred header call