- check for file length before inspecting for library property

Please merge for 2015.1, thanks