Fix undefined index on extensions tab (and others) when only one check box is present and the checkbox is disabled. Also ensure non existent tabs cannot be loaded. Closes #1637