Fix/throw expectationexception

This will throw an exception if the publishbutton was not found. Otherwise if the button is null and we attempt a click on it, it will crash and all the other behat tests will not get executed.