ay_to_strv: Prevent dereferencing a NULL pointer.

* clang static analysis shows that ay_to_strv is
  called with argc set to NULL. This can cause
  ay_to_strv to dereference the pointer in a
  failure situation.