Remove redundant check when setting up properties.

We only want to prevent the modules property from being exported, so
let's just say that.

Change-Id: I6d9ccfaf72cf0b9de4bc9d435b633dc659f57f95
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>