fix issue where null is returned in JSON feed