Item11267: Work with older Foswiki API

We need this extension on foswiki.org as well as trunk.  I tested back
to Foswiki 1.1.4.  Probably would work on older versions as well.