client: Fix for handling an unset callback