throw expectationexception if publishbutton is null
Merge pull request #99 from Kunstmaan/fix/throw_expectationexception

throw expectationexception if publishbutton is null