Hide legendcontainer when no legends are added to the print