JCLOUDS-641 fix return code for deleteIfEmpty