Fix semicolon handling for expression statement.

When expecting a semicolon, consume it right away if that is the next
token. The check for whether there is a line terminator or not should
only happen afterwards.

https://code.google.com/p/esprima/issues/detail?id=462
https://code.google.com/p/esprima/issues/detail?id=533