[bug fixing] PTSDK-1409

fix power.release() throw wrong error type if parameter's type
mismatching