Bug "Metadata handling with local storage" fixed

 add_trailing_slash could not work with "None" type. This is the fucked-up reality of bad Python.