Returns the unique library named libraryName if it exists.
If no unique library exists, an error is thrown.