PRD-4568: Fix NPE that was causing dialog to not render properly.