Allow JS Injection to work properly when MDS is disabled or has failed back