drm: Add NULL check about irq functions