Correctly updated total resources when agent capabilities changed.
Correctly updated total resources when agent capabilities changed.

Due to the short-circuiting behaviour of C++ boolean operations,
an agent that re-registers with changed agent capabilities would
not have its total updated.

Review: https://reviews.apache.org/r/64342/

gsantovena/mesos,andschwa/mesos,dforsyth/mesos,Gilbert88/mesos,jpeach/mesos,jpeach/mesos,jpeach/mesos,kaysoky/mesos,gsantovena/mesos,reneploetz/mesos,chhsia0/mesos,dforsyth/mesos,Gilbert88/mesos,chhsia0/mesos,kaysoky/mesos,abudnik/mesos,chhsia0/mesos,reneploetz/mesos,gsantovena/mesos,andschwa/mesos,chhsia0/mesos,Gilbert88/mesos,asamerh4/mesos,andschwa/mesos,kaysoky/mesos,reneploetz/mesos,jpeach/mesos,abudnik/mesos,dforsyth/mesos,asamerh4/mesos,reneploetz/mesos,asamerh4/mesos,asamerh4/mesos,chhsia0/mesos,abudnik/mesos,reneploetz/mesos,gsantovena/mesos,andschwa/mesos,dforsyth/mesos,chhsia0/mesos,kaysoky/mesos,gsantovena/mesos,abudnik/mesos,kaysoky/mesos,asamerh4/mesos,Gilbert88/mesos,abudnik/mesos,asamerh4/mesos,dforsyth/mesos,andschwa/mesos,Gilbert88/mesos,abudnik/mesos,kaysoky/mesos,abudnik/mesos,jpeach/mesos,reneploetz/mesos,jpeach/mesos,gsantovena/mesos,Gilbert88/mesos,Gilbert88/mesos,andschwa/mesos,reneploetz/mesos,kaysoky/mesos,dforsyth/mesos,chhsia0/mesos,dforsyth/mesos,asamerh4/mesos,andschwa/mesos,jpeach/mesos,gsantovena/mesos