Fixed 500 error which appeared when /i/* was opened.

The error appeared when /i/* was opened. The environ['PATH_INFO'] was set to '' which caused an exception. Now it checks if the Path contains additional / which would lead to a valid path and if not, the incorrect path will cause a 404 error.