SSL training does not support masks

The loss used for SSL training does not take available masks into account, if they exist.