How you react to rare moves or novelties in the Opening, depends heavily on how one studies Openings in the first place.
Some amateurs choose to memorise their Openings by rote, and such a superficial approach tends to let one down when faced with an uncommon or not well known move.
I have stressed many times that aspiring players must strive to understand thoroughly the themes and ideas behind the Openings they play, as only in this way will they be better equipped to successfully deal with a new idea or move over the board. It is also indespensible to understand fully the rudiments of what is considered sound Opening play, such as: Control of the Center; Not moving the same piece twice; Developing all of your pieces; King Safety; Don't bring your Queen out too early; Don't go pawn hunting; Connect the rooks; Knights before Bishops; etc etc etc
Once one has a firm grasp of the rudiments of good Opening play, the next thing an aspiring player quickly realises is that these rules though sound in general are not meant to be followed blindly or dogmatically. That is to say that through experience your judgement should devlop to the point that one knows when some of these Opening postulates can be bent and sometimes broken.
The great Cuban Jose Capablanca once challenged the rule of moving the same piece twice in the Opening, by stating that it was fine to do so, provided that the move carried a strong enough threat. This is one of the various dilemmas an aspiring player is faced with on his journey towards master level.
A non chess player once asked me "What is the fundamental difference between two players once they have reached master level" his point being that surely every master understands fully the tenants of good Opening, Middle and Endgame play, so how is it then that one master can be so much stronger than another? My answer was that among other things, a chess battle between two masters often does not revolve around good ideas verses bad ideas but rather good ideas verses better ones.
In summary, seek to understand the Openings you play rather than memorise them and you should be able to better cope with surprises at the board.
Tops