check for nil completion handler

fixes issue #14