Null pointer exception in TransactionsStatisticsRegistry