graceful failure when dom is missing