Einstein could have based his theory on the discontinuous particle concept of light - instead, he based it on the continuous field concept:

Banesh Hoffmann: "And if we take light to consist of particles and assume that these particles obey Newton's laws, they will conform to Newtonian relativity and thus automatically account for the null result of the Michelson-Morley experiment without recourse to contracting lengths, local time, or Lorentz transformations. Yet, as we have seen, Einstein resisted the temptation to account for the null result in terms of particles of light and simple, familiar Newtonian ideas, and introduced as his second postulate something that was more or less obvious when thought of in terms of waves in an ether."

Relativity and Its Roots, p.92

https://www.amazon.com/Relativity-Its-Roots-Banesh-Hoffmann/dp/0486406768
Albert Einstein: "...I introduced the principle of the constancy of the velocity of light, which I borrowed from H. A. Lorentz's theory of the stationary luminiferous ether..."

https://en.wikipedia.org/wiki/Lorentz_ether_theory
"And then, in June, Einstein completes special relativity, which adds a twist to the story: Einstein's March paper treated light as particles, but special relativity sees light as a continuous field of waves."

http://www.pbs.org/wgbh/nova/einstein/genius/
"The two first articles (January and March) establish clearly a discontinuous structure of matter and light. The standard look of Einstein's SR is, on the contrary, essentially based on the continuous conception of the field."

http://arxiv.org/ftp/physics/papers/0101/0101109.pdf
In 1954 Einstein realized what he had done:

Albert Einstein (1954): "I consider it entirely possible that physics cannot be based upon the field concept, that is on continuous structures. Then nothing will remain of my whole castle in the air, including the theory of gravitation, but also nothing of the rest of contemporary physics." John Stachel, Einstein from 'B' to 'Z', p. 151

https://www.amazon.com/Einstein-B-Z-John-Stachel/dp/0817641432
Pentcho Valev