On the modularity of reducible Galois representations