Add proper checking of asset to CheckAsset

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>