On the Detectability of Lyman-alpha Emission in Star-forming Galaxies: The Role of Dust