fixed NRE with empty public profile url