Fixed problem with Activemq Browse page that didn't display messages upo...

...n refresh

Fixes #1635

@jimmidyson is this needed in other places?