Fixed error when membership ends 9999 AD.
Fixed error on member details page.

Members without any membership period caused an exception because the date of
entry could not be found.