When using 0 as the cost, the `create_threshold` method
throws an exception. That happens because 0 (zero) is evaluated
to False. Therefore, we need to change the validation method to
check if the values are None.
Change-Id: Iedd541c0ad16db0d11d6e6de332eddf880af1698