Related: #i124201# fix frame-list handling with AppleRemote events

(cherry picked from commit 2d6f7c351fd53de62af5262778173538942aa4b1)

Conflicts:
	vcl/osx/salinst.cxx

Change-Id: I3f80bacd673f06be92406d397260d5b7bb0d1a19
coverity#441048 silence Dereference after null check

Change-Id: I3869657bbf20ac3152090a96428456c2a9eb9d14