This is probably a feature. The non-jquery version will need a check for the elements existance to not blow up, which could the same be added to the jquery version for error reporting.
Plus, in this case, you will find out by seeing the dark theme is not active :p