#i124201# fix frame-list handling with AppleRemote events

iterating beyond the end of a frame-list must be avoided


git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1565664 13f79535-47bb-0310-9956-ffa450edef68