Strip query params in LR snippet middleware

The LR snippet middleware fails to match "index.html" if there are query params as well.

I've updated it to resolve that.