[#1823] Fix play.exceptions.CompilationException

[lighthouse #1823](play.lighthouseapp.com/projects/57987/tickets/1823)