[SPARK-3535][Mesos] Fix resource handling.

Ah yes good catch.  I'll update the PR.