Fixed NULL arguments to apr_pool_cleanup_register()

Use apr_pool_cleanup_null instead.
Throw exception in unit test if bsdiff is missing

Instead of indicating that the unit test has failed.