erp5_knowledge_pad: fix condition in same block as define

For Base_viewKnowledgePadMacroLibrary