Gunners survive nervy couple of minutes to win in first match for 16 days