Changed the get_latest_snapshot method to return nil if a snapshot is not available.