Fix error handling in provision button ajax call

The check for provisioning status that is needed to show or hide
the provision button had broken error handling.

Change-Id: I78c7278870d3fdebb7b23de9144ae85136ac4328
Merge "Fix error handling in provision button ajax call"