plugin: fix level guessing from portal details, and opening the guessed player dialog