Fixed bug introduced by previous commit

When there are nothing to be logged, instead for returning call the
continuation if available