Fixes walled garden issue

In particular, this allows iZap videos to work with walled garden sites, but more generally, any plugin that accesses the Elgg engine through the command line would need this fix for walled garden sites.