US thin-film solar module maker First Solar Inc (NASDAQ:FSLR) managed to narrow its net loss in the second quarter of 2019 after the cost of sales decreased and gross profit turned positive.