Win 7 AMD X3 455, R7 360
Short description of error
Inbuilt quick access shortcuts for menus can execute the associated entries no matter the UI state of them (disabled by using layout.enabled = False)
Exact steps for others to reproduce the error
Run script the provided modified template script in the Text editor > Access the Custom Menu in the Info header > Press 1 (One) or T (underscored letter).
Even though the entry is disabled in the menu layout, it still can be accessed with these inbuilt generic Menu shortcuts.
It's not that a big of an issue in case of operators behind a poll but it can lead to crashes if something was disabled in the UI for a reason.