Fix a bug which cause an exception to be thrown when slugifying a file with no slug, and no extension on the filename.
Fix a bug which cause an exception to be thrown when slugifying a file
with no slug, and no extension on the filename.

ngokevin/wok,ngokevin/wok