Display Posts widget: close div when no posts are returned

Props @chriswallace

Original trac ticket:
* https://plugins.trac.wordpress.org/ticket/2152