Fixed a bug in getDBDiff

When there was no notes array in the request a NullPointerExeption was
generated