Do not query for contacts when there are no contacts

Authored by eduisters on Jan 27 2019, 4:33 PM.