avoid NullPointerException when second argument to name function of MetricRegistry class is null
add test for name function of MetricRegistry class when names is null
Merge pull request #426 from djsutho/patch-1

avoid NullPointerException in name function of MetricRegistry class