Fix NPE when ENABLED_ATTRIBUTE is not set