Issue #1504: ES6 module exports should not count as unused

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>