Tweak product attributes template to hide table if nothing is shown Closes #4927