UAVAPI, fix for None occurence in getting value from database