Only enable the debug mode in the FE if there is a BE user (see #6450)