Non-forking and preservation of NIP and dp-rank