IDEUI-330 Don't add separator if it's the first or last item in the popup menu
Merge pull request #244 from kevinpollet/IDEUI-330

IDEUI-330 Edit custom environments separator useless if no custom defined