Added error message if System.console() returns null.
Gradle 1.6-rc-1