fix TypeError for display.multi_sparse == False

fixes #3553.