Ticket 47788 - Only check postop result if its a replication operation
Bug Description: With IPA tests, without using replication, an error is
being triggered that is stoipping nomral updates from
Fix Description: Move the error checking up into the code block above
which only executes for replicated operations.
Reviewed by: nhosoi & tbordaz(Thanks!!)
(cherry picked from commit d7b598da2eff95070936bf7c3e01bcd11c44ed60)