Fix vim25:InvalidRequest when no profiles exist

Currently, we don't check if there are any existing profiles in
pbm.get_all_profiles. As a result, we send a malformed request to
PBMRetrieveContent resulting in vim25:InvalidRequest.

Change-Id: I882c97a8050f8c2d49a4ce1de0f166e457ce68f2
Closes-Bug: #1302271
import run_cross_tests.sh from incubator

Change-Id: I1ba7f5e0879e71f456772d7b762c69bb0967fe18
Merge "Fix vim25:InvalidRequest when no profiles exist"