Fixed bug in case when webapp prefix ends with slash