Avoid accessing XPCE graphics if we have no display