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
going through.
Fix Description: Move the error checking up into the code block above
which only executes for replicated operations.
https://fedorahosted.org/389/ticket/47788
Reviewed by: nhosoi & tbordaz(Thanks!!)
(cherry picked from commit d7b598da2eff95070936bf7c3e01bcd11c44ed60)