[noticket] When there is a problem with getting the CSW record, it tells you what the error was. Much clearer message for when metadata doc is empty (just said None) before. Fixed tests.