provider/aws: fix panic when user_data receives nil from StateFunc