Fixed API issues if a file to be loaded doesn't exist.