There was an issue with the okapi extensions namespace not getting loaded consistently. The true value should be https.
Make sure you namespace URL looks like this:
xmlns:okpsrx="https://okapi.sf.net/srx-extensions"