Testing and Improving the Robustness of Amortized Bayesian Inference for Cognitive Models