Added missing include
Fix bug that prevented the end time to be removed from existing items (PTC-110)

_prepareDataForSend did not set endTime if it evaluated to false, which null
does. Because of this, the original end time was sent to the server.