prevent rederence NULL surface objects in EglOS layer. Change-Id: If5e8dc1a0cdf25fe9b268cce6456cc7da88b9f7f