Made invite return null as described in jsdoc