Fix for TypeError: item is null when selecting Location for Course