Removed bug in MshLayerMapper::CreateLayers().

The bug occured in the case the 2d mesh contains non 2d elements like lines.