There are 5 different positions your cube can be in now, one of which could be solved. The rest of them have all four corners solved, so do the required amount of U moves so that every corner is in its right place. 2 of the 4 remaining possibilities have a solved bar (as mentioned above, where all three colours on that side are the same), and the other 2 have no solved bars.
If there are no more edges left on the top layer, then they are probably either inserted in the right place but flipped, or inserted in the wrong place. To get an edge out of somewhere it shouldn't be, just insert one of the yellow edges into that slot. This should get the edge out and on the top layer, ready for you to use the above instructions to insert correctly. Rubix Build