Ensure dhud handle exists before using it