profile: fixes bug I just noticed in retrieving ids from profile urls