MDL-42965 badges: Fix empty string comparison for Oracle