Added check if an ending slash is missing, related to #809