Fix bug in code generator whereby an empty return could be emitted for the OBSERV population criteria