Fix runtime warnings when opening Edit->Preferences

These were new after merging webkit-composer branch changes, but just
some leftovers.