fix get_user_credits and get_post_credits to return 0 if credits have not been set