Silence output even when ; is followed by a comment.

Fixes https://github.com/JuliaLang/IJulia.jl/issues/109

Note: This fails for strings such as "a; #b" as pointed out on https://github.com/ipython/ipython/pull/5388