web: Use correct client when getting max memory for docker

Previously an error would occur if the run dialog wasn't shown before
the container details page.

Fixes #661