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: I34062ee58176728e3585810bace0e8513229c210