Fixing a bug where popovers would decouple from angular data after hiding and reshowing.