Fixed an issue where createFile would create a directory instead if the
file path was abstract.
Fixed an issue where the hashcode for Site failed if the referrer was
null.