data libraries: don't allow adding dataset within deleted library; better error message handling