Preference: if no expected insertion point found, append

If we can't determine where in the $preferences array we should insert
a preference, default to appending it rather than crash.

Change-Id: I9c63fed0e5a1c83e53ca30266d1cb99a14b65002