Fixed the usage of the ternary operator in Amazon modules

Fixed the Empty Query error.