[#32675] Missing check in JApplicationSite causes a fatal error