Update MessageBar.java

Updating previous pull request.