A thief who broke off an apartment robbery in central Stockholm to take a pee has been caught because he carelessly missed the bowl.