Fix hidden causing project_variable and group_variable to force replacement when not configured
This commit fixes an issue where the project and group variable force replace when hidden isn't configured
Closes #6685 (closed)