Use correct persistence unit when checking for database platform.

This avoids the EMF being closed by the check when running on Sybase.