Rule Error in Log: Unhandled parameter types:

Hello
i´m in the process to migration from OH1.8 to OH2.0 and get errors in OH2.0 rules that worked on OH1.8

rule:

rule "Rolllaeden runter"
when
    Item Sunset1 received update ON or
    Item SunsetLimit received update ON
then
    if (now.isAfter((Sunset1_Time.state as DateTimeType).calendar.timeInMillis)) {
            logInfo("Roll", "noch vor Sonnenuntergang")
            sendMail("x@test.com", "1-Rolladen", "noch vor Sonnenuntergang")
            return
    }
    if (SunsetLimit.state == OFF) {
            logInfo("Roll", "SunsetLimit noch nicht erreicht")
            sendMail("x@test.com", "1-Rolladen", "SunsetLimit noch nicht erreicht")
            return
    }
    sendCommand(Roll_Status, ON)
    logInfo("Roll", "Rolllaeden runter Rolltimer")
    sendMail("x@test.com", "1-Rolllaeden runter Rolltimer", "Rolllaeden runter Rolltimer") 
end

Log Error:
2017-04-17 21:08:04.704 [ERROR] [.script.engine.ScriptExecutionThread] - Rule ‘Rolllaeden runter’: An error occured during the script execution: Unhandled parameter types: [null, org.eclipse.xtext.xbase.interpreter.impl.DefaultEvaluationContext@ff9360, org.eclipse.xtext.util.CancelIndicator$1@9cafef]

Any idea?
Thanks
Sebastian

did you find the cause of this?
I am suspecting its the return statement, as I too get this error.
would an if then else statement be better than an if return if statement?