Fixes Query#addVisibilityAwareTypeIds to use the trimmed and lowercased value to calculate the ID to match the previous change.