[fix] Do not match pattern against empty value