MDL-38366 repository: get_option() returns proper values

Previously, even when a specific setting had to be returned, this method
would return an empty array. Now, the behaviour is the same whether
some options or none are set: if the requested setting is not found
null is returned.
MDL-38366 repository_filesystem: Prevent use of empty subdir