Bad things will find you, if you are not looking for good things!
Bad things happen no matter what you do. They don't conspire against you, and the universe doesn't respond to your desires. It's not conscious. It's indifferent and absolutely neutral. To delude yourself into believing otherwise is to accept the same principles that underlie religious faith.
The only truth in this is a variation on that old maxim that those who go looking for trouble will inevitably find it.
Very true if you do not go out seeking truth earnestly, with an open and sceptical mind, then religion for example waits lurking round every corner to grab you.
I had not thought to look at it that way, in that specific circumstance you are quite right.