fix(popup): hide buttons div if there's no buttons to show. Fixes #2344