This fixes a sigsegv on startup when the HUD is set to be transparent. Thanks to toaster for helping me track down the bug!