What do you get in the chat frame when you enter this command manually?
/dump LibStub("LibRealmInfo"):GetRealmInfo(GetRealmName())
If you get a bunch of "nil" try adding your region explicitly; it shouldn't be required, but let's just try it:
/dump LibStub("LibRealmInfo"):GetRealmInfo(GetRealmName(), "US")