If you do get that again, could you click on the link and report the code lines it points to?
I think that it is reporting that it can't access the Node-RED settings (RED.settings. THe populateTemplateDropdown accesses RED.settings.uibuilderTemplates which is a property passed back from the .js file via the options to RED.nodes.registerType.
I can't see anything else that might go wrong in that function as it is mostly jQuery.
I've put in a test for the next release in the populateTemplateDropdown function so that it outputs a suitable error if the setttings aren't accessible.
Just a heads up for beginners following this guide to try and get started with uibuilder, when I made this change, it broke the page totally. I had to walk it back to get the vue template working again.