Addressing CR comments:
 * Don't need to check for null before WriteObject
 * Refactored common code to SqlDatabaseCmdletBase.GetCurrentSqlClient