Fix Versioned::augmentSQL() when the data query was null.