Fix compose operations involving 'nothing'