fix possible 500 error on null country