[NUCRDBMS-764] Fix check on use of releaseAfterUse to only apply when
ExecutionContext is not null