trailing slash in url causes 404 error

when accessing samples for a specific meter, appending a trailing
slash will add an empty target path to 'remainder', in turn
triggering 404 error. in case last target path in remainder, we
will drop that empty instance.

Change-Id: I583a0fe9755c9bec8bcb08b13a3f1d03a3acf336
Fixes:Bug#1202739
Merge "trailing slash in url causes 404 error"