refs #1816 make sure apiMethod and apiModule is set. This seems to be not the case for instance if flat=1. Reproduceable if clicking flatten in custom variables