Ensure missing settings vars don't break admin JS. Closes #1015.