Fixed issue #38 - should detect when result not set