Leinster ride out the storm to escape from Belfast with a seven-point win