conditionally suppress the item (right click and select Format field, select the Common tab and clcik on the formula editornext to the Suppress option) or the section (open the section expert select the section it is on like details and click on the formula button next to the Suppress no drill down option)
using the supress formula with
isnull(table.location1field) and isnull(table.location2field)
or if they are empty strings instead of null values
table.location1field="" and table.location2field=""