Reorder precondition checker
- Issue:
Some unit tests are failed.
- Solution:
The reason why the tests are failed is because the order for checking
precondition is changed from previous code. All APIs first check
parameters and then check state. However, some function check state
first and the parameters after next patch.
https://review.tizen.org/gerrit/c/platform/core/uifw/stt/+/277656
This patch revert the order of precondition check, so every APIs check
precondition with same way.
Change-Id: I91d1ef4e3fd0910070e182bad39156d45b1c69fc
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>