[BUGFIX] Only set pending ajax requests if they are falsy