Issue #3018863 by joelpittet, Berdir, alexpott: Make SystemMenuBlock's new constructor argument dependency optional