Add no value check

If the check doesn't exist, invalid ID is used. It may cause crash.