Do niches help in controlling disease spread in ecoepidemic models?