Structural stability for variable exponent elliptic problems