Documentation: Fix event command execution conditions

fixes #6685