Fix bitbucket avatars

This PR works around an inconsistency of the bitbucket API that in one case prevents our current code from extracting the user's avatar URL.