Check for missing group before using.

If you instantiate with gallery:true but there is only one image then this.group isn't set and causes _getPositionInfo to fail.