Fix for pre set up errors

Will now not break permalinks if the home page is not set