Previously, the endpoint parameter is required for attaching storage.
It returns InvalidParameterValueError exception when user only
specify capacity parameter. Fixed it by checking endpoint only when
it is not None.
Change-Id: Ie3da659f5c8e4fe35e19dc3ba60db7c83b6cfae7