Revert "LIB-48: don't return NULL on !success"

This reverts commit 9c518aad85e59e61fe5b5bbd89604db78b8819d7.

This was a controversial change with no important improvements.
I also removed that part from the ChangeLog.