Fixed detail-search according to googles latest changes

Google recently changed the behaviour for the Places API, now you must specify either a reference or a placeid. This fix checks for either one of them.