meson: Check arguments before adding.
-static-libstdc++ doesn't exist on the Android NDK, casuing all later has_argument calls to return false even though the compiler supports that argument. Fixes: 3aee4627 "meson: add windows compiler checks and libraries" Reviewed-by:Eric Engestrom <eric@engestrom.ch> Part-of: <mesa/mesa!13164> (cherry picked from commit 22673a98)