Biugfix: Created a condition where returning no records caused a
variable (post_betas_dict) to not be set.