Converts an expression that uses an safe-access operator to an if-then expression