On optimal reinsurance with stochastic premium