On the safe use of prior densities for Bayesian model selection