Null pointer exception in asset templates fixed