check for correct array in ApsInstaller, fixes #1098

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>