AvHerald has usually more reliable information. Apparently the FO was taking an approved controlled rest on the flightdeck, and the captain later on tried to explain the whole situation by blaming "malfunctioning" com equipment. Which seems to be the reason for his dismissal rather than the falling asleep thing itself.