fix nullindexexception when no empire name provided