Added second callback argument as null

The second argument was undefined if there was an error from the request. Now, it will return instead of it.