Add begin rescue block for location id in dashboard controller