Describe the bug
When a template is locked, at least within a nested context, a separator is shown even though there are no options below it. The logic of the menu should not show the separator unless there are options below.

To Reproduce
Steps to reproduce the behavior:
TBD. Will be introduced with Column block in #7234.
Expected behavior
No separator if options not below it.
Fixed by #7751
FYI @nfmohit-wpmudev : For future reference, GitHub supports keyword conventions which allow associated issues to be auto-closed upon merge. See: https://help.github.com/articles/closing-issues-using-keywords/
Wow, didn't know that. Will use it from now on. Thank you so much for letting me know @aduth ❤