fixes #178

all dao helpers now adequately check for not null context and location
profile (where applicable)