fix bug in browse/query request code that caused success callback to be undefined