Fix NoMethodError caused by nil notebookCounts

I was playing with this example app and found that GET `/list` fails when all notebooks are empty. The cause is `counts.notebookCounts` returns `nil` in this case.