A dynamical analysis of the HD 37124 planetary system