Partially Revert "Swapping out deprecated method for non-deprecated call."

This reverts commit fafee3480343983930a46f3200b123d2a697c473.

There are 3rd party housings that don't implement the new getErrorState() yet.
We can only get rid of this with the next major API change.