Do not take into account the "none" style.

Fixes export module when no style is used.
(cherry picked from commit 2d1954c6fef5834ff52515414433bf8589bf4fc5)