Fix data library API and test case for https://bitbucket.org/galaxy/galaxy-central/commits/9d152ed.

See same fix for histories in f9a5a4bd32424f039ee90c9c1735bc5f90a38973.