Fix potential NPE if user doesn't register display