Update dashboard.scala.html

change made to handle null pointer exception