Only warn if there is an expectation block.

Signed-off-by: Sam Phippen <samphippen@googlemail.com>