BUG: stats: Fix a couple issues in the recently updated beta_gen.fit method.

This PR fixes two issues. One is gh-2771.  The other is that beta_gen.fit did not correctly handle the case where all the parameters were fixed.