Fix typo in errror message
Fix NPE if assetid can't be found.