prevent frontend js errors on non content pages