Remove trailing slash when extracting provider ID from path. SOCIAL-427