SettingsAccessor: Fix for projects with shared file only

Broken by 0addee8bac56410e2208e52e9e73db32a9663b4b

Change-Id: I86caf4146556b1bde0ba7798115672b840ca8621
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>