(bug 45168) Don't use a closure for wgExtensionFunctions

Change-Id: Ie3105705683c09c5f61fd9e40ea7c00d91365646