[OE-2765] allow $table to be null in special cases
Merge branch 'release/1.4-moorfields' of github.com:openeyes/OpenEyes into release/1.4-moorfields