[slap] Catch IndexError if slap used in query