Fix error on ratio is empty on saving

when edit model with avatar, then save the form without any change, error throw about `convert from string to float`
So I made a simple fix for this.