Issue #2404801 by hass: Fix shortcut module reference to be invoked only if shortcut module is enabled.